Skip to content

V10: Update dependencies #1782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open

Conversation

luke-hill
Copy link
Contributor

@luke-hill luke-hill commented Mar 7, 2025

Description

Update dependencies for the final time - Needed for v10 release

Checklist for completion

  • CCK
    • v16 compliance
    • v17 compliance
    • v18 compliance
  • Formatters
  • Backtraces
  • JRuby "nuance" (Needs investigating if introduced through 9.1 or JRuby natural updates)
  • Ruby 3.4 support documented / tested

Type of change

Please delete options that are not relevant.

  • Refactoring (improvements to code design or tooling that don't change behaviour)
  • New feature (non-breaking change which adds new behaviour)
  • Breaking change (will cause existing functionality to not
    work as expected)

Please add an entry to the relevant section of CHANGELOG.md as part of this pull request.

Checklist:

Your PR is ready for review once the following checklist is
complete. You can also add some checks if you want to.

  • Tests have been added for any changes to behaviour of the code
  • New and existing tests are passing locally and on CI
  • bundle exec rubocop reports no offenses
  • RDoc comments have been updated
  • CHANGELOG.md has been updated

message = Cucumber::Messages::Envelope.new(
test_run_started: Cucumber::Messages::TestRunStarted.new(
timestamp: time_to_timestamp(Time.now)
timestamp: time_to_timestamp(Time.now),
id: event.test_cases.first.id
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The id on a TestRunStarted should be a generated id that represents the entire test run - it doesn't pertain to any particular test case or attempt. The same value should then go on TestRunFinished.testRunStartedId at the end.

@luke-hill
Copy link
Contributor Author

For anyone monitoring. CCK conformance (To target v17), is about 90% complete now. We are having issues with 1 last CCK spec (retry).

Once we have CCK v17 compliance, the remaining items are just refactors and some tidy ups. That then is the last blocker for v10 being released.

unless configuration.dry_run?
filters << Filters::BroadcastTestRunStartedEvent.new(@configuration)
filters << Filters::Quit.new
filters << Filters::Retry.new(@configuration)
# need to do this last so it becomes the first test step
filters << Filters::PrepareWorld.new(self)
end

filters << Filters::BroadcastTestCaseReadyEvent.new(@configuration)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self (cc/ @davidjgoss )

This is the cause of the retry CCK blowing up

@luke-hill
Copy link
Contributor Author

Truffleruby issue: oracle/truffleruby#3870

@luke-hill luke-hill closed this May 16, 2025
@luke-hill luke-hill reopened this May 16, 2025
@@ -27,4 +27,15 @@

expect(comparator.errors).to be_empty, "There were comparison errors: #{comparator.errors}"
end

it 'ensures a consistent `testRunStartedId` across the entire test run' do
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidjgoss I think this removes the need to sanity check anything. Spoke with Rien on the call about this yesterday. My understanding here is every id should be identical across the suite for this check

include:
- os: ubuntu-latest
ruby: jruby-9.4
- os: ubuntu-latest
ruby: truffleruby-24
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ruby: truffleruby-24
ruby: truffleruby

(see other comment)

@@ -22,7 +22,7 @@ jobs:
- os: ubuntu-latest
ruby: jruby-9.4
- os: ubuntu-latest
ruby: truffleruby-head
ruby: truffleruby-24
Copy link

@eregon eregon Jun 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ruby: truffleruby-24
ruby: truffleruby

I would recommend this, and the same in .github/workflows/release.yaml.
That will only pick truffleruby releases, and avoid using something too old (it's too easy to forget updating this version).

You could also keep using truffleruby-head now that oracle/truffleruby#3870 is fixed and the latest truffleruby-head build includes this.
But maybe you want more stability in cucumber CI and that is fine.
Your bug report was helpful to catch this early though, and switching to only releases means it might be caught later.

(from oracle/truffleruby#3870 (comment))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think given it's fixed we might just undo these changes and go back to head. But I've been working on this PR for an age and want to get it out ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants